<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2025新年快乐</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #b71c1c;
            font-family: 'Microsoft YaHei', sans-serif;
            overflow: hidden;
        }

        .card {
            position: relative;
            width: 300px;
            height: 450px;
            background: #fff;
            border-radius: 20px;
            box-shadow: 0 35px 80px rgba(0, 0, 0, 0.15);
            transition: 0.5s;
            padding: 20px;
            text-align: center;
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }

        .lantern {
            position: absolute;
            width: 60px;
            height: 80px;
            background: #ff4d4d;
            border-radius: 50% 50% 20% 20%;
            animation: swing 2s ease-in-out infinite;
        }

        .lantern-left {
            top: -40px;
            left: -30px;
        }

        .lantern-right {
            top: -40px;
            right: -30px;
        }

        @keyframes swing {
            0% { transform: rotate(5deg); }
            50% { transform: rotate(-5deg); }
            100% { transform: rotate(5deg); }
        }

        .dragon {
            width: 200px;
            height: 100px;
            margin: 20px auto;
            animation: dance 4s ease-in-out infinite;
        }

        @keyframes dance {
            0% { transform: scale(1) rotate(0deg); }
            25% { transform: scale(1.1) rotate(5deg); }
            50% { transform: scale(1) rotate(0deg); }
            75% { transform: scale(1.1) rotate(-5deg); }
            100% { transform: scale(1) rotate(0deg); }
        }

        .title {
            color: #b71c1c;
            font-size: 2em;
            font-weight: bold;
            margin: 20px 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
            animation: glow 2s ease-in-out infinite;
        }

        @keyframes glow {
            0% { text-shadow: 0 0 5px #ff4d4d; }
            50% { text-shadow: 0 0 20px #ff4d4d; }
            100% { text-shadow: 0 0 5px #ff4d4d; }
        }

        .message {
            color: #333;
            font-size: 1.2em;
            line-height: 1.6;
            margin: 20px 0;
        }

        .firework {
            position: absolute;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            animation: explode 1s ease-out infinite;
        }

        @keyframes explode {
            0% { 
                transform: scale(1);
                opacity: 1;
                background: gold;
            }
            100% { 
                transform: scale(30);
                opacity: 0;
                background: red;
            }
        }

        .blessing {
            color: #b71c1c;
            font-size: 1.1em;
            font-weight: bold;
            margin-top: 20px;
            animation: bounce 1s ease infinite;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .coins {
            width: 50px;
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            animation: spin 3s linear infinite;
        }

        .coins1 {
            width: 50px;
            position: absolute;
            bottom: 10px;
            left: 70%;
            transform: translateX(-50%);
            animation: spin 3s linear infinite;
        }

        .coins2 {
            width: 50px;
            position: absolute;
            bottom: 10px;
            left: 30%;
            transform: translateX(-50%);
            animation: spin 3s linear infinite;
        }

        @keyframes spin {
            0% { transform: translateX(-50%) rotate(0deg); }
            100% { transform: translateX(-50%) rotate(360deg); }
        }
    </style>
</head>
<body>
    <div class="card">
        <div class="lantern lantern-left"></div>
        <div class="lantern lantern-right"></div>
        
        <img src="https://api.iconify.design/noto:snake.svg" 
             alt="蛇" class="dragon">
        
        <h1 class="title">2025 新年快乐</h1>
        
        <div class="message">
            愿亲爱的你新的一年<br>
            开开心心<br>
            万事如意<br>
            财源滚滚
        </div>

        <div class="blessing">恭贺新春</div>

        <img src="https://api.iconify.design/noto:money-with-wings.svg" 
             alt="铜钱" class="coins">
        <img src="https://api.iconify.design/noto:money-with-wings.svg" 
        alt="铜钱" class="coins1">
        <img src="https://api.iconify.design/noto:money-with-wings.svg" 
        alt="铜钱" class="coins2">

        <!-- 烟花效果 -->
        <div class="firework" style="top:20%; left:20%"></div>
        <div class="firework" style="top:30%; right:20%"></div>
        <div class="firework" style="bottom:40%; left:30%"></div>
        <div class="firework" style="bottom:20%; right:30%"></div>
    </div>

    <script>
        // 动态创建烟花
        function createFirework() {
            const firework = document.createElement('div');
            firework.className = 'firework';
            firework.style.left = Math.random() * 100 + '%';
            firework.style.top = Math.random() * 100 + '%';
            document.body.appendChild(firework);

            // 动画结束后移除元素
            setTimeout(() => {
                firework.remove();
            }, 1000);
        }

        // 每隔一段时间创建新的烟花
        setInterval(createFirework, 500);
    </script>
</body>
</html> 